/*
 * <p>Copyright ® 数据爬虫案例版权所有。</p>
 * 类名:ViewWorksAuthorPO
 * 创建人:xiaoxiao
 * 创建时间:2017-02-17
 */
package com.wx.demo.wcd.domain.po;


import com.yjhl.framework.domain.po.PO;
import com.wx.demo.wcd.domain.pk.ViewWorksAuthorPK;

/**
 * persistent class for ViewWorksAuthor view
 * @author xiaoxiao
 * @since 1.8
 * @version 1.0.0  
 */
 
public class ViewWorksAuthorPO extends PO {
    private static final long serialVersionUID = 1L;

    /**
     * 作品ID
     */
    private String worksId;
    /**
     * 作品名称
     */
    private String worksName;
    /**
     * 序主要用于词
     */
    private String preface;
    /**
     * 内容
     */
    private String content;
    /**
     * 所属作品集
     */
    private String sampleReels;
    /**
     * 所属作者
     */
    private String authorId;
    /**
     * 其他作者
     */
    private String otherAuthor;
    /**
     * 作品创作时间
     */
    private String creationTime;
    /**
     * 创作背景
     */
    private String background;
    /**
     * 注释
     */
    private String annotate;
    /**
     * 译文
     */
    private String translation;
    /**
     * 编辑用户ID
     */
    private String userId;
    /**
     * 创建时间
     */
    private java.util.Date createTime;
    /**
     * 最后修改时间
     */
    private java.util.Date endTime;
    /**
     * 备注
     */
    private String remark;
    /**
     * 题材
     */
    private String theme;
    /**
     * 标签
     */
    private String tag;
    /**
     * 人物姓名
     */
    private String authorName;
    /**
     * 朝代
     */
    private String dynasty;
    /**
     * 性别
     */
    private String sex;
    /**
     * 民族
     */
    private String nation;
    /**
     * 职业
     */
    private String job;
    /**
     * 出生日期
     */
    private java.util.Date birthDate;
    /**
     * death_date
     */
    private java.util.Date deathDate;
    /**
     * 绰号
     */
    private String nickname;
    /**
     * 字
     */
    private String alias;
    /**
     * 代表作
     */
    private String works;
    /**
     * 籍贯
     */
    private String nativePlace;
    /**
     * 人物画像地址连接
     */
    private String portraitLink;
    /**
     * 简介
     */
    private String synopsis;

    public String getWorksId() {
        return worksId;
    }

    public void setWorksId(String worksId) {
        this.worksId = worksId;
    }

    public String getWorksName() {
        return worksName;
    }

    public void setWorksName(String worksName) {
        this.worksName = worksName;
    }

    public String getPreface() {
        return preface;
    }

    public void setPreface(String preface) {
        this.preface = preface;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getSampleReels() {
        return sampleReels;
    }

    public void setSampleReels(String sampleReels) {
        this.sampleReels = sampleReels;
    }

    public String getAuthorId() {
        return authorId;
    }

    public void setAuthorId(String authorId) {
        this.authorId = authorId;
    }

    public String getOtherAuthor() {
        return otherAuthor;
    }

    public void setOtherAuthor(String otherAuthor) {
        this.otherAuthor = otherAuthor;
    }

    public String getCreationTime() {
        return creationTime;
    }

    public void setCreationTime(String creationTime) {
        this.creationTime = creationTime;
    }

    public String getBackground() {
        return background;
    }

    public void setBackground(String background) {
        this.background = background;
    }

    public String getAnnotate() {
        return annotate;
    }

    public void setAnnotate(String annotate) {
        this.annotate = annotate;
    }

    public String getTranslation() {
        return translation;
    }

    public void setTranslation(String translation) {
        this.translation = translation;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public java.util.Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(java.util.Date createTime) {
        this.createTime = createTime;
    }

    public java.util.Date getEndTime() {
        return endTime;
    }

    public void setEndTime(java.util.Date endTime) {
        this.endTime = endTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getTheme() {
        return theme;
    }

    public void setTheme(String theme) {
        this.theme = theme;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public String getAuthorName() {
        return authorName;
    }

    public void setAuthorName(String authorName) {
        this.authorName = authorName;
    }

    public String getDynasty() {
        return dynasty;
    }

    public void setDynasty(String dynasty) {
        this.dynasty = dynasty;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getNation() {
        return nation;
    }

    public void setNation(String nation) {
        this.nation = nation;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public java.util.Date getBirthDate() {
        return birthDate;
    }

    public void setBirthDate(java.util.Date birthDate) {
        this.birthDate = birthDate;
    }

    public java.util.Date getDeathDate() {
        return deathDate;
    }

    public void setDeathDate(java.util.Date deathDate) {
        this.deathDate = deathDate;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public String getWorks() {
        return works;
    }

    public void setWorks(String works) {
        this.works = works;
    }

    public String getNativePlace() {
        return nativePlace;
    }

    public void setNativePlace(String nativePlace) {
        this.nativePlace = nativePlace;
    }

    public String getPortraitLink() {
        return portraitLink;
    }

    public void setPortraitLink(String portraitLink) {
        this.portraitLink = portraitLink;
    }

    public String getSynopsis() {
        return synopsis;
    }

    public void setSynopsis(String synopsis) {
        this.synopsis = synopsis;
    }
    
    
	
	/**
	 * @see com.yjhl.framework.domain.po.PO#isNull()
	 */
	@Override
    public boolean isNull(){
		return (		
    		worksId == null     	
    		&&
    		worksName == null     	
    		&&
    		preface == null     	
    		&&
    		content == null     	
    		&&
    		sampleReels == null     	
    		&&
    		authorId == null     	
    		&&
    		otherAuthor == null     	
    		&&
    		creationTime == null     	
    		&&
    		background == null     	
    		&&
    		annotate == null     	
    		&&
    		translation == null     	
    		&&
    		userId == null     	
    		&&
    		createTime == null     	
    		&&
    		endTime == null     	
    		&&
    		remark == null     	
    		&&
    		theme == null     	
    		&&
    		tag == null     	
    		&&
    		authorName == null     	
    		&&
    		dynasty == null     	
    		&&
    		sex == null     	
    		&&
    		nation == null     	
    		&&
    		job == null     	
    		&&
    		birthDate == null     	
    		&&
    		deathDate == null     	
    		&&
    		nickname == null     	
    		&&
    		alias == null     	
    		&&
    		works == null     	
    		&&
    		nativePlace == null     	
    		&&
    		portraitLink == null     	
    		&&
    		synopsis == null     	
				);
	}
	
	/**
	 * @see com.yjhl.framework.domain.po.PO#isEmpty()
	 */
	@Override
    public boolean isEmpty(){
		return (		
    	worksId == null 
    		&&
    	worksName == null 
    		&&
    	preface == null 
    		&&
    	content == null 
    		&&
    	sampleReels == null 
    		&&
    	authorId == null 
    		&&
    	otherAuthor == null 
    		&&
    	creationTime == null 
    		&&
    	background == null 
    		&&
    	annotate == null 
    		&&
    	translation == null 
    		&&
    	userId == null 
    		&&
    	createTime == null 
    		&&
    	endTime == null 
    		&&
    	remark == null 
    		&&
    	theme == null 
    		&&
    	tag == null 
    		&&
    	authorName == null 
    		&&
    	dynasty == null 
    		&&
    	sex == null 
    		&&
    	nation == null 
    		&&
    	job == null 
    		&&
    	birthDate == null 
    		&&
    	deathDate == null 
    		&&
    	nickname == null 
    		&&
    	alias == null 
    		&&
    	works == null 
    		&&
    	nativePlace == null 
    		&&
    	portraitLink == null 
    		&&
    	synopsis == null 
				);
	}
	
	/**
	 * @see com.yjhl.framework.domain.po.PO#isNonPkNull()
	 */
	@Override
    public boolean isNonPkNull(){
		return (		
    		worksName == null     	
    		&&
    		preface == null     	
    		&&
    		content == null     	
    		&&
    		sampleReels == null     	
    		&&
    		authorId == null     	
    		&&
    		otherAuthor == null     	
    		&&
    		creationTime == null     	
    		&&
    		background == null     	
    		&&
    		annotate == null     	
    		&&
    		translation == null     	
    		&&
    		userId == null     	
    		&&
    		createTime == null     	
    		&&
    		endTime == null     	
    		&&
    		remark == null     	
    		&&
    		theme == null     	
    		&&
    		tag == null     	
    		&&
    		authorName == null     	
    		&&
    		dynasty == null     	
    		&&
    		sex == null     	
    		&&
    		nation == null     	
    		&&
    		job == null     	
    		&&
    		birthDate == null     	
    		&&
    		deathDate == null     	
    		&&
    		nickname == null     	
    		&&
    		alias == null     	
    		&&
    		works == null     	
    		&&
    		nativePlace == null     	
    		&&
    		portraitLink == null     	
    		&&
    		synopsis == null     	
				);
	}

	/**
	 * @see com.yjhl.framework.domain.po.PO#isNonPkEmpty()
	 */
	@Override
    public boolean isNonPkEmpty(){
		return (		
    	worksName == null 
    		&&
    	preface == null 
    		&&
    	content == null 
    		&&
    	sampleReels == null 
    		&&
    	authorId == null 
    		&&
    	otherAuthor == null 
    		&&
    	creationTime == null 
    		&&
    	background == null 
    		&&
    	annotate == null 
    		&&
    	translation == null 
    		&&
    	userId == null 
    		&&
    	createTime == null 
    		&&
    	endTime == null 
    		&&
    	remark == null 
    		&&
    	theme == null 
    		&&
    	tag == null 
    		&&
    	authorName == null 
    		&&
    	dynasty == null 
    		&&
    	sex == null 
    		&&
    	nation == null 
    		&&
    	job == null 
    		&&
    	birthDate == null 
    		&&
    	deathDate == null 
    		&&
    	nickname == null 
    		&&
    	alias == null 
    		&&
    	works == null 
    		&&
    	nativePlace == null 
    		&&
    	portraitLink == null 
    		&&
    	synopsis == null 
				);
	}
	
	
	/**
	 * @see com.yjhl.framework.domain.po.PO#buildPK()
	 */
	@Override
    public ViewWorksAuthorPK buildPK(){
    	ViewWorksAuthorPK entityPK = new ViewWorksAuthorPK();
    	
		entityPK.setWorksId( worksId );
    	
    	return entityPK;
	}
	
	@Override
	public String toString(){
		
		String toString = "{";
		  	 if(this.worksId != null){
		   	 	toString += (this.worksId+",");
		   	 }
		  	 if(this.worksName != null){
		   	 	toString += (this.worksName+",");
		   	 }
		  	 if(this.preface != null){
		   	 	toString += (this.preface+",");
		   	 }
		  	 if(this.content != null){
		   	 	toString += (this.content+",");
		   	 }
		  	 if(this.sampleReels != null){
		   	 	toString += (this.sampleReels+",");
		   	 }
		  	 if(this.authorId != null){
		   	 	toString += (this.authorId+",");
		   	 }
		  	 if(this.otherAuthor != null){
		   	 	toString += (this.otherAuthor+",");
		   	 }
		  	 if(this.creationTime != null){
		   	 	toString += (this.creationTime+",");
		   	 }
		  	 if(this.background != null){
		   	 	toString += (this.background+",");
		   	 }
		  	 if(this.annotate != null){
		   	 	toString += (this.annotate+",");
		   	 }
		  	 if(this.translation != null){
		   	 	toString += (this.translation+",");
		   	 }
		  	 if(this.userId != null){
		   	 	toString += (this.userId+",");
		   	 }
		  	 if(this.createTime != null){
		   	 	toString += (this.createTime+",");
		   	 }
		  	 if(this.endTime != null){
		   	 	toString += (this.endTime+",");
		   	 }
		  	 if(this.remark != null){
		   	 	toString += (this.remark+",");
		   	 }
		  	 if(this.theme != null){
		   	 	toString += (this.theme+",");
		   	 }
		  	 if(this.tag != null){
		   	 	toString += (this.tag+",");
		   	 }
		  	 if(this.authorName != null){
		   	 	toString += (this.authorName+",");
		   	 }
		  	 if(this.dynasty != null){
		   	 	toString += (this.dynasty+",");
		   	 }
		  	 if(this.sex != null){
		   	 	toString += (this.sex+",");
		   	 }
		  	 if(this.nation != null){
		   	 	toString += (this.nation+",");
		   	 }
		  	 if(this.job != null){
		   	 	toString += (this.job+",");
		   	 }
		  	 if(this.birthDate != null){
		   	 	toString += (this.birthDate+",");
		   	 }
		  	 if(this.deathDate != null){
		   	 	toString += (this.deathDate+",");
		   	 }
		  	 if(this.nickname != null){
		   	 	toString += (this.nickname+",");
		   	 }
		  	 if(this.alias != null){
		   	 	toString += (this.alias+",");
		   	 }
		  	 if(this.works != null){
		   	 	toString += (this.works+",");
		   	 }
		  	 if(this.nativePlace != null){
		   	 	toString += (this.nativePlace+",");
		   	 }
		  	 if(this.portraitLink != null){
		   	 	toString += (this.portraitLink+",");
		   	 }
		  	 if(this.synopsis != null){
		   	 	toString += (this.synopsis+",");
		   	 }
		  if(toString.lastIndexOf(",") == ( toString.length()-1)){
		  	toString = toString.substring(0, toString.length()-1);
		  }
		 toString += "}";
		return toString;
		
	}
	
	public String inputDescription(){
		
		String inputDescription = "{";
		   if(this.worksId != null){
		   		inputDescription += (this.worksId+" : 作品ID,");
		   }
		   if(this.worksName != null){
		   		inputDescription += (this.worksName+" : 作品名称,");
		   }
		   if(this.preface != null){
		   		inputDescription += (this.preface+" : 序主要用于词,");
		   }
		   if(this.content != null){
		   		inputDescription += (this.content+" : 内容,");
		   }
		   if(this.sampleReels != null){
		   		inputDescription += (this.sampleReels+" : 所属作品集,");
		   }
		   if(this.authorId != null){
		   		inputDescription += (this.authorId+" : 所属作者,");
		   }
		   if(this.otherAuthor != null){
		   		inputDescription += (this.otherAuthor+" : 其他作者,");
		   }
		   if(this.creationTime != null){
		   		inputDescription += (this.creationTime+" : 作品创作时间,");
		   }
		   if(this.background != null){
		   		inputDescription += (this.background+" : 创作背景,");
		   }
		   if(this.annotate != null){
		   		inputDescription += (this.annotate+" : 注释,");
		   }
		   if(this.translation != null){
		   		inputDescription += (this.translation+" : 译文,");
		   }
		   if(this.userId != null){
		   		inputDescription += (this.userId+" : 编辑用户ID,");
		   }
		   if(this.createTime != null){
		   		inputDescription += (this.createTime+" : 创建时间,");
		   }
		   if(this.endTime != null){
		   		inputDescription += (this.endTime+" : 最后修改时间,");
		   }
		   if(this.remark != null){
		   		inputDescription += (this.remark+" : 备注,");
		   }
		   if(this.theme != null){
		   		inputDescription += (this.theme+" : 题材,");
		   }
		   if(this.tag != null){
		   		inputDescription += (this.tag+" : 标签,");
		   }
		   if(this.authorName != null){
		   		inputDescription += (this.authorName+" : 人物姓名,");
		   }
		   if(this.dynasty != null){
		   		inputDescription += (this.dynasty+" : 朝代,");
		   }
		   if(this.sex != null){
		   		inputDescription += (this.sex+" : 性别,");
		   }
		   if(this.nation != null){
		   		inputDescription += (this.nation+" : 民族,");
		   }
		   if(this.job != null){
		   		inputDescription += (this.job+" : 职业,");
		   }
		   if(this.birthDate != null){
		   		inputDescription += (this.birthDate+" : 出生日期,");
		   }
		   if(this.deathDate != null){
		   		inputDescription += (this.deathDate+" : death_date,");
		   }
		   if(this.nickname != null){
		   		inputDescription += (this.nickname+" : 绰号,");
		   }
		   if(this.alias != null){
		   		inputDescription += (this.alias+" : 字,");
		   }
		   if(this.works != null){
		   		inputDescription += (this.works+" : 代表作,");
		   }
		   if(this.nativePlace != null){
		   		inputDescription += (this.nativePlace+" : 籍贯,");
		   }
		   if(this.portraitLink != null){
		   		inputDescription += (this.portraitLink+" : 人物画像地址连接,");
		   }
		   if(this.synopsis != null){
		   		inputDescription += (this.synopsis+" : 简介,");
		   }
		  if(inputDescription.lastIndexOf(",") == ( inputDescription.length()-1)){
		  	inputDescription = inputDescription.substring(0, inputDescription.length()-1);
		  }
		  inputDescription += "}";
		
		return inputDescription;
		
	}
	
	
}
